<div id="page-wrapper">
            <div class="row">
            <img src="<?php echo base_url() ?>bootstrap/tot/bnnr-eservice1.jpg" class="img-responsive" alt="Responsive image">
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            เพิ่มผู้ดูแลระบบ 
                        </div>
                        <div class="row">
                          
                            <div class="panel-body">
                             <form class="form-horizontal" role="form" method="post" action="<?php echo base_url();?>index.php/admin/user/save">
                             <br/>

                                        <div class="form-group">
                                            <label for="inputEmail3" class="col-sm-2 control-label" >username</label>
                                            <div class="col-xs-3">
                                                <input type="text" class="form-control" name="admin_username" placeholder="Admin Username" value="<? echo $val['admin_username']?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-2 control-label">password</label>
                                            <div class="col-sm-3">
                                                <input type="text" class="form-control" name="admin_password" placeholder="Admin Password" value="<? echo $val['admin_password']?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-2 control-label">ชื่อ</label>
                                            <div class="col-sm-3">
                                                <input type="text" class="form-control" name="admin_fname" placeholder="ชื่อ" value="<? echo $val['admin_fname']?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-2 control-label">สกุล</label>
                                            <div class="col-sm-3">
                                                <input type="text" class="form-control" name="admin_lname" placeholder="สกุล" value="<? echo $val['admin_lname']?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-2 control-label">ตำแหน่ง</label>
                                            <div class="col-sm-3">
                                                <input type="text" class="form-control" name="admin_position" placeholder="ตำแหน่ง" value="<? echo $val['admin_position']?>">
                                            </div>
                                        </div>                                                          
                                      
                                      <div class="form-group">
                                        <div class="col-sm-offset-2 col-sm-10">
                                              <input type="hidden" id="pon_id" name="admin_id" value="<? echo $val['admin_id'] ?>" >
                                          <button type="submit" class="btn btn-primary">บันทึกข้อมูล</button>
                                        </div>
                                      </div>
                                      
                                </form>
                            </div><!-- /.row -->
                        </div><!--panel body-->
                    </div><!--panel primary-->     
                </div><!---clo-lg-12--> 
            </div><!--row-->
</div>      <!-- /#page-wrapper -->




</script>    